<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <%@include file="../common.jsp"%>
    <title>测试结果管理</title>
	<meta http-equiv="cache-control" content="no-cache">
	<link rel="stylesheet" type="text/css" href="resources/css/common.css">
	<script type="text/javascript" src="resources/js/framejs/jquery.form.js"></script> 
	<script type="text/javascript" src="resources/js/result.js"></script> 
	<style type="text/css">
		#tab_list img{height: 30px;}
		#tab_list td{line-height:30px;}
		#btn_right{float: right;}
	</style> 
  </head>
  <body>
   	<div class="content">
   		<h4>测试结果管理</h4>
   		<hr/>
	    <!-- 工具栏 -->
   		<div class="tools">
   			<div class="btn_right">
				<button id="btn_add" type="button" class="btn btn-success"><i class="icon icon-plus"></i> 增加测试结果</button>
				<button id="btn_del" type="button" class="btn btn-danger"><i class="icon icon-minus"></i> 删除</button>
   			</div>
 	    	<div class="row">
			  <div class="col-lg-2">
			    <div class="input-group">
			      <span class="input-group-btn">
			        <button class="btn btn-default" type="button">选择试卷</button>
			      </span>
			      <select class="form-control">
					  <option value="0">请选择...</option>
				 </select>
			    </div>
			  </div>
			</div>
	    </div>
	    <!-- 列表 -->	    
	    <table id="tab_list" class="table table-hover table-striped mytable">
			<thead>
				<tr>
					<th style="width: 35px;"><input id="pkall" type='checkbox' class='checkbox'></th>
					<th style="width: 50px;">序号</th>
					<th>开始分数(包括) </th>
					<th>结束分数(不包括)</th>
					<th>结果</th>
				</tr>
			</thead>
			<tbody>
				
			</tbody>
	  	 </table>
	  	 <!-- 分页信息条 -->
	  	 <div id="pagebar" class="pagebar">
		  <ul class="pager">
		  		
		  </ul>
		  <p id="page_info" class="page_info">显示第<span>0</span>到第<span>0</span>条记录,共<span>0</span>条</p>
	  	 </div>
	  </div>
	   
	  <!-- 增加 -->
	  <div class="modal fade bs-example-modal-lg" id="modal_add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		  <div class="modal-dialog modal-lg">
		    <div class="modal-content">
		      <div class="modal-header">
		        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
		        <h4 class="modal-title" id="myModalLabel">新增测试结果</h4>
		      </div>
		      <div class="modal-body">
		         <form id="form_add" class="form-horizontal" role="form" action="test/addResult" method="post">
					  <div class="form-group">
					    <label class="col-sm-2 control-label required">开始分数</label>
					    <div class="col-sm-10">
					      <input type="number" min="0" max="100" value="0" name="lowScore" class="form-control" placeholder="请输入开始分数(包括)" data-toggle="tooltip" data-placement="top" title="必须是0-100的整数">
					    </div>
					  </div>
					  <div class="form-group">
					    <label class="col-sm-2 control-label required">结束分数</label>
					    <div class="col-sm-10">
					      <input type="number" min="0" max="100" value="100" name="highScore" class="form-control" placeholder="请输入结束分数(不包括)" data-toggle="tooltip" data-placement="top" title="必须是0-100的整数">
					    </div>
					  </div>
					  <div class="form-group">
					    <label class="col-sm-2 control-label required">测试结果</label>
					    <div class="col-sm-10">
					    	<textarea rows="5" class="form-control" name="result" data-toggle="tooltip" data-placement="top" title="请输入测试结果"></textarea>
					    </div>
					  </div>
				</form>
		      </div>
		      <div class="modal-footer">
		          <button id="btn_confirm_add" type="button" class="btn btn-primary">确定</button>
		          <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
		      </div>
		    </div>
	   </div>
	</div>
	<!-- 修改 -->
	<div class="modal fade bs-example-modal-lg" id="modal_edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		  <div class="modal-dialog modal-lg">
		    <div class="modal-content">
		      <div class="modal-header">
		        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
		        <h4 class="modal-title" id="myModalLabel">修改测试结果</h4>
		      </div>
		      <div class="modal-body">
		         <form id="form_edit" class="form-horizontal" role="form" action="test/editResult" method="post">
		         	  <input type="hidden" name="id" value="">
					  <div class="form-group">
					    <label class="col-sm-2 control-label required">开始分数</label>
					    <div class="col-sm-10">
					      <input type="number" min="0" max="100" value="0" name="lowScore" class="form-control" placeholder="请输入开始分数(包括)" data-toggle="tooltip" data-placement="top" title="必须是0-100的整数">
					    </div>
					  </div>
					  <div class="form-group">
					    <label class="col-sm-2 control-label required">结束分数</label>
					    <div class="col-sm-10">
					      <input type="number" min="0" max="100" value="100" name="highScore" class="form-control" placeholder="请输入结束分数(不包括)" data-toggle="tooltip" data-placement="top" title="必须是0-100的整数">
					    </div>
					  </div>
					  <div class="form-group">
					    <label class="col-sm-2 control-label required">测试结果</label>
					    <div class="col-sm-10">
					    	<textarea rows="5" class="form-control" name="result" data-toggle="tooltip" data-placement="top" title="请输入测试结果"></textarea>
					    </div>
					  </div>
				</form>
		      </div>
		      <div class="modal-footer">
		          <button id="btn_confirm_edit" type="button" class="btn btn-primary">确定</button>
		          <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
		      </div>
		    </div>
	   </div>
	</div>
  </body>
</html>